package com.sl.au.service;

import java.util.List;

import com.sl.au.entity.PartsAttributes;
import com.sl.au.repository.PartsAttributesRepository;

public interface PartsAttributesService extends BaseService {
	PartsAttributesRepository getRepository();
    
	//获得选择项的分页
	List<PartsAttributes> getPartsAttributes(int start, int length, String key, String orderName, String dir);
	/**
	 * 获取分页数据
	 * @param start
	 * @param length
	 * @param key
	 * @param orderName
	 * @param dir
	 * @return
	 */
//	List<PartsAttributes>   getPage(int start, int length, String key ,String orderName ,String dir);
	
	/**
	 * @param start
	 * @param length
	 * @param key
	 * @return 得到选项配置PartsAttributes的链表，关键字为key
	 */
	List<PartsAttributes> getPage(int start, int length, String id ,String key);
	
	/**
	 * @param key
	 * @return 得到选项配置PartsAttributes的条数，关键字为key
	 */
	Long getCount(String id , String key);
	
	/**
	 *
	 */
	List<PartsAttributes> getAllPartsAttributesByTypeid(String typeid);
}
